package qf.sail.service.impl;

import qf.sail.contents.CodeMsg;
import qf.sail.dao.AccountDao;
import qf.sail.dao.impl.AccountDaoImpl;
import qf.sail.entity.Account;
import qf.sail.service.AccountService;

public class AccountServiceImpl implements AccountService {
    private AccountDao accountDao = new AccountDaoImpl();

    @Override
    public Account findAccountByPhone(String phone) {
        Account account = accountDao.findAccountByPhone(phone);
        return account;
    }

    @Override
    public int addAccount(Account account) {
        return accountDao.addAccount(account);
    }
}
